export default {
    setUserInfo(state,userInfo) {
        state.userInfo = userInfo
    },
    setRole(state,role){
        state.userInfo.role_id = role.role_id;
        state.userInfo.role_name = role.role_name
    },
    // 获取全部权限
    setAllPermissions(state,permissions){
        state.permissions = permissions
    },
    // 获取全部角色信息
    setAllRole(state,role){
        state.role = role
    },
    // 获取全部账号信息
    setAllUser(state,user){
        state.user = user
    },
    // 获取当前角色拥有的权限
    setUserPermissions(state,permissions){
        state.userPermissions = permissions
    },
    // 获取渲染的权限列表
    setPermissionsList(state,permissions){
        state.permissionsList = permissions
    }
}